package com.remote.server.handle;

import com.remote.common.RemoteFactory;
import com.remote.common.command.handler.BaseCommandHandler;
import com.remote.common.exception.RemoteException;
import com.remote.common.model.Request;
import io.netty.channel.ChannelHandlerContext;

public abstract class BaseServerHandler extends BaseCommandHandler<Request> {


    public BaseServerHandler(RemoteFactory remoteFactory) {
        super(remoteFactory);
    }

    @Override
    public void handle(ChannelHandlerContext ctx, Request inbound) throws RemoteException {
        this.handleO(ctx, inbound);
    }

    protected abstract void handleO(ChannelHandlerContext ctx, Request inbound);



}
